import 'package:sow_app_core/src/repository/rest_client.dart';
import 'package:test/test.dart';

import 'package:sow_app_mock/sow_app_mock.dart';

void main() {
  group('register controller test group', () {
    final RestClient client = MockRestClient();
    final MockSettingPresenter presenter = MockSettingPresenter(client);
    final controller = MockSettingController(presenter, client);
    test("should present valid search list data when invoke getSearchList",
        () async {
      controller.validateClient("foo");
      await Future.doWhile(() => presenter.flag = false);
      expect(presenter.connectionValid, null);
    });
  });
}
